package com.ll.notice;

import com.ll.notice.service.ISmsNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class StartupLoading implements CommandLineRunner {
    @Autowired()
    ISmsNoticeService smsNoticeService;
    @Override
    public void run(String... args) {
        smsNoticeService.sendMessage();
    }
}
